Learn how to send record updates to Algolia for faster indexing and less network calls.
saveObjects
method. The problem is that you would perform a million individual network calls, which would take way too long and saturate your Algolia cluster with indexing jobs.
A leaner approach is to split your collection of records into smaller collections, then send each chunk one by one. For optimal indexing performance, aim for a batch size of about 10 MB, representing between 1,000 and 10,000 records, depending on the average record size.
saveObjects
method, the API client automatically chunks your records into batches of 1,000 objects.
algolia objects import
command.